#include "Eixos.h"

Eixos::Eixos(float comprimento)
{
    this->comprimento = comprimento;
}

void Eixos::draw(void)
{
    // Desenha o eixo X:
    glColor3f(1.0, 0.0, 0.0);
    glBegin(GL_LINES);
        glVertex3f(0.0,0.0,0.0);
        glVertex3f(comprimento,0.0,0.0);
    glEnd();

    // Desenha o eixo Y:
    glColor3f(0.0, 1.0, 0.0);
    glBegin(GL_LINES);
        glVertex3f(0.0,0.0,0.0);
        glVertex3f(0.0,comprimento,0.0);
    glEnd();

    // Desenha o eixo Z:
    glColor3f(0.0, 0.0, 1.0);
    glBegin(GL_LINES);
        glVertex3f(0.0,0.0,0.0);
        glVertex3f(0.0,0.0,comprimento);
    glEnd();
}
